#!/bin/bash
# Zaitan Module - GoogleEarth Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Multimidia'
RMOD_NAME='GoogleEarthLinux'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='4.1'
RMOD_DESCRIPTION='Installs GoogleEarth'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'


# install GoogleEarthLinux



echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

cd /usr/share/zaitan

if [ -e GoogleEarthLinux.bin ]
	then
	
	chmod +x GoogleEarthLinux.bin
	./GoogleEarthLinux.bin


	else
	
	wget http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
	chmod +x GoogleEarthLinux.bin
	./GoogleEarthLinux.bin

fi

echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0

